package cn.broadmax.boot.modules.aj.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 案卷记录
 * </p>
 *
 * @author jexx
 * @since 2021-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("aj_record")
@ApiModel(value="Record对象", description="案卷记录")
public class Record implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "案卷名称")
    private String name;

    @ApiModelProperty(value = "办案部门")
    private String department;

    @ApiModelProperty(value = "案卷类型")
    private String type;

    @ApiModelProperty(value = "案卷编号")
    private String code;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "案发时间")
    private LocalDateTime crimeTime;

    @ApiModelProperty(value = "案卷级别")
    private String level;

    @ApiModelProperty(value = "案卷地点")
    private String address;

    @ApiModelProperty(value = "案卷原由")
    private String reason;

    @ApiModelProperty(value = "案卷描述")
    private String description;

    @ApiModelProperty(value = "承办人")
    private String undertaker;

    @ApiModelProperty(value = "状态")
    private String state;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createUserId;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUserId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    private Boolean del;


}
